<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>同咨科技-商户后台</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../../static/css/weadmin.css">
    <link href="../../lib/layui/css/layui.css" rel="stylesheet">

    <script type="text/javascript" src="../../lib/layui/layui.js" charset="utf-8"></script>
    <script type="module" src="../components/use-body.js"></script>



    <link href="../../static/css/task.css" rel="stylesheet">
    <link href="../../static/css/uselay.css" rel="stylesheet">
</head>

<body>
    <use-body>
        <div class="page-body">

            <span class="layui-breadcrumb breadcrumb" lay-separator="/">
                <a><i title="首页" class="iconfont use-more"></i></a>
                <a>任务大厅</a>
                <a><cite>任务详情</cite></a>
            </span>

            <div class="page-border task-detail">
                <div class="title-box">
                    <div class="text">任务标题，这个是个标题示意</div>
                    <div class="info">
                        <div class="user">
                            <img src="../../static/images/task/Oval.png" alt="" srcset="">
                            <div>
                                <p>任务发起人</p>
                                <span>王大拿</span>
                            </div>
                        </div>
                        <div>
                            <img src="../../static/images/task/Frame 162416.png" alt="" srcset="">
                            <div>
                                <p>任务状态</p>
                                <span class="state blue"><i></i>进行中</span>
                            </div>
                        </div>
                        <div>
                            <img src="../../static/images/task/Frame 162416(1).png" alt="" srcset="">
                            <div>
                                <p>优先等级</p>
                                <span class="state red">高级</span>
                            </div>
                        </div>
                        <div style="align-items: center; font-size: 16px;">
                            <div>
                                <p>距离任务结束还有<span style="margin: 0 24px;font-size: 24px;">115</span>天</p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="comp">
                    <div>
                        <textarea class="layui-textarea" style="height: 225px;"
                            placeholder="任务描述内容内容内容内容，任务描述内容内容内容内容任务描述内容内容内容内容"></textarea>
                    </div>
                    <div style="width: 278px;">
                        <div class="cell">
                            <img src="../../static/images/task/Frame 162416(7).png" alt="">
                            <div>
                                <p>任务所属版块</p>
                                <span>四川同咨工程咨询有限公司</span>
                            </div>
                        </div>
                        <div class="cell">
                            <img src="../../static/images/task/Frame 162416(8).png" alt="">
                            <div>
                                <p>任务成员</p>
                                <div class="tag-task">
                                    <span>张小刚<img src="../../static/images/task/Frame(3).png" alt=""></span>
                                    <span>张小刚<img src="../../static/images/task/Frame(3).png" alt=""></span>
                                    <span>张小刚<img src="../../static/images/task/Frame(3).png" alt=""></span>
                                    <div class="plus">
                                        <img src="../../static/images/task/Frame(2).png" alt="">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div style="width: 240px;">
                        <div class="cell">
                            <img src="../../static/images/task/Frame 162416(2).png" alt="">
                            <div>
                                <p>评分周期</p>
                                <span>每周评分</span>
                            </div>
                        </div>
                        <div class="cell">
                            <img src="../../static/images/task/Frame 162416(5).png" alt="">
                            <div>
                                <p>评分时间</p>
                                <span>星期一</span>
                            </div>
                        </div>
                        <div class="cell">
                            <img src="../../static/images/task/Frame 162416(6).png" alt="">
                            <div>
                                <p>我的平均得分</p>
                                <span><strong style="font-size: 18px;">3.8 </strong><small>分</small></span>
                            </div>
                        </div>
                    </div>
                    <div style="width: 260px;">
                        <div class="cell">
                            <img src="../../static/images/task/Frame 162416(2).png" alt="">
                            <div>
                                <p>开始时间</p>
                                <span>2020-12-01</span>
                            </div>
                        </div>
                        <div class="cell">
                            <img src="../../static/images/task/Frame 162416(2).png" alt="">
                            <div>
                                <p>截止时间</p>
                                <span>2021-03-21</span>
                            </div>
                        </div>
                        <div class="layui-btn-center">
                            <button type="button" class="layui-btn layui-btn-radius layui-btn-fluid">
                                <i class="iconfont use-wenben"></i>
                                <span>任务详情</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="task-row">
                <div class="page-border">
                    <div class="title layui-font-18">督办人 绩效评分</div>
                    <div class="table-box">
                        <table class="layui-hide" id="test"></table>
                    </div>
                </div>
                <div class="page-border">
                    <div class="title layui-font-18">
                        <span>绩效评分</span>
                        <div>
                            <button type="button" class="layui-btn layui-btn-radius layui-btn-sm"><i class="iconfont use-edit"></i> 评分</button>
                        </div>
                    </div>
                    <div class="table-box">
                        <table class="layui-hide" id="test1"></table>
                    </div>
                </div>
                <div class="page-border record">
                    <p>1.按时完成度：按时完成任务的得2分...</p>

<p>2.安排合理性：根据任务安排的执行人员...</p>

<p>3.日志完整性：日志记录完整、记录内容...</p>
                </div>
            </div>

            <div class="task-row">
                <div class="page-border">
                    <div class="title layui-font-18">执行人 绩效评分</div>
                    <div class="table-box">
                        <table class="layui-hide" id="test2"></table>
                    </div>
                </div>
                <div class="page-border">
                    <div class="title layui-font-18">
                        <span>绩效评分</span>
                        <div>
                            <button type="button" class="layui-btn layui-btn-radius layui-btn-sm btn-text">取消</button>
                            <button type="button" class="layui-btn layui-btn-radius layui-btn-sm">确定</button>
                        </div>
                    </div>
                    <div class="table-box">
                        <table class="layui-hide" id="test3"></table>
                    </div>
                </div>
                <div class="page-border record">
                    <p>1.按时完成度：按时完成任务的得2分...</p>

<p>2.安排合理性：根据任务安排的执行人员...</p>

<p>3.日志完整性：日志记录完整、记录内容...</p>
                </div>
            </div>
        </div>
    </use-body>
</body>
<script>
    layui.use('table', function () {
        var $ = layui.$;
        var table = layui.table;
        var laypage = layui.laypage;
        var util = layui.util;
        var element = layui.element;

        const data = [{ // 赋值已知数据
            "id": "10001",
            "username": "张三1",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "116"
        }, {
            "id": "10002",
            "username": "张三2",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "12",
            "LAY_CHECKED": true
        }, {
            "id": "10003",
            "username": "张三3",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "65"
        }, {
            "id": "10004",
            "username": "张三4",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "777"
        }, {
            "id": "10005",
            "username": "张三5",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "86"
        }, {
            "id": "10006",
            "username": "张三6",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "12"
        }, {
            "id": "10007",
            "username": "张三7",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "16"
        }, {
            "id": "10008",
            "username": "张三8",
            "sex": "男",
            "city": "浙江杭州",
            "sign": "人生恰似一场修行",
            "experience": "106"
        }]
        // 创建渲染实例
        table.render({
            elem: '#test',
            cellMinWidth: 80,
            height: 270,
            page: false,
            data,
            skin: 'nob', // 表格风格
            cols: [[
                { field: 'username', title: '督办人', fixed: 'left', width: 120,
                templet:`<div><span class='tag' style='background:#E8FFF9'>{{d.username}}</span></div>`
                },
                { field: 'ip', title: '平均得分', fixed: 'left', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
            ]]
        })

        table.render({
            elem: '#test1',
            cellMinWidth: 80,
            height: 270,
            page: false,
            data,
            skin: 'nob', // 表格风格
            cols: [[
                { field: 'username', title: '督办人', 
                templet:`<div><span class='tag' style='background:#E8FFF9'>{{d.username}}</span></div>`
                },
                { field: 'ip', title: '按时完成度', },
                { field: 'ip', title: '任务安排合理性', },
                { field: 'ip', title: '日志记录完整性', },
                { field: 'ip', title: '综合得分', }
            ]]
        })

        table.render({
            elem: '#test2',
            cellMinWidth: 80,
            height: 270,
            page: false,
            data,
            skin: 'nob', // 表格风格
            cols: [[
                { field: 'username', title: '督办人', fixed: 'left', width: 120,
                templet:`<div><span class='tag' style='background:#E8FFF9'>{{d.username}}</span></div>`
                },
                { field: 'ip', title: '平均得分', fixed: 'left', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
                { field: 'ip', title: '第1次', width: 120 },
            ]]
        })
        table.render({
            elem: '#test3',
            cellMinWidth: 80,
            height: 270,
            page: false,
            data,
            skin: 'nob', // 表格风格
            cols: [[
                { field: 'username', title: '督办人', 
                templet:`<div><span class='tag' style='background:#E8FFF9'>{{d.username}}</span></div>`
                },
                { field: 'username', title: '按时完成度', edit: 'text' },
                { field: 'ip', title: '问题反馈及时性',  edit: 'text'},
                { field: 'ip', title: '问题反馈清晰性', edit: 'text' },
                { field: 'ip', title: '建议合理性',  edit: 'text'},
                { field: 'ip', title: '综合得分', }
            ]]
        })
    })
</script>

</html>